/*
 * ColaSDLReader.h
 *
 *  Created on: Nov 14, 2011
 *      Author: gonzalo
 */

#ifndef COLASDLREADER_H_
#define COLASDLREADER_H_


#include "../Threads/Thread.h"
#include "../../Server/ColaMensajeRecibir.h"
#include "../../Server/ColaMensajesSDL.h"
#include "ThreadSafeMap.h"
#include <map>

class ColaSDLReader : public Thread {
public:
	ColaSDLReader(ConditionVariable* inform,ColaMensajesSDL* colaALeer,ThreadSafeList* aLlenar,TypeNotifier tipoRetorno);
	virtual ~ColaSDLReader();

	void terminar();
protected:
	virtual void* run();
private:
	ConditionVariable* inform;
	ColaMensajesSDL* aLeer;
	ThreadSafeList* aLlenar;
	TypeNotifier tipoMensaje;
	bool running;
};

#endif /* COLASDLREADER_H_ */
